/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 邓大帅
 * Date: 2022-11-07
 * Time: 21:00
 */
    public class InPrime {
        public static void main(String[] args) {
            for (int i = 1; i <= 100; i += 2) {
                int flag = 0;
                for (int j = 2; j < i; j++) {
                    if (i % j == 0) {
                        flag = 1;
                        break;
                    }
                }
                if (i == 1) {
                    System.out.println(2);
                    flag = 1;
                }
                if (flag == 0) {
                    System.out.println(i);
                }
            }
        }
    }
